const {ccclass, property} = cc._decorator;

@ccclass
export default class BackgroundControll extends cc.Component {

    start() {

    }

    update(dt) {
        for (let bgItem of this.node.children) {
            bgItem.y -= 50 * dt;
            if (bgItem.y <= -426) {
                bgItem.y += 852 * 2;
            }
        }
    }

}
